﻿using System;
using DotNetNuke.Entities.Portals;
using DotNetNuke.Entities.Users;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Services.Search;
using System.Collections.Generic;
using System.Data;


namespace DotNetNuke.Modules.PersonalAssistants
{
    ///<summary>
    /// This information object holds the information on a single guestbook entry
    ///</summary>
    public static class Extension 
    {
        public static string Shorten(this string name, int chars)
        {
            if (name.ToCharArray().Length > chars)
            {
                return name.Substring(0, chars) + "...";
            }
            else return name;
        }
    }


}